package com.nsl.my_youlai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nsl.my_youlai.model.bo.DocxTemplateBo;
import com.nsl.my_youlai.model.entity.DocxTemplateEntity;
import com.nsl.my_youlai.model.query.DocxTemplatePageQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DocxTemplateMapper extends BaseMapper<DocxTemplateEntity> {
    DocxTemplateBo getDocxTemplateBoById(String docxTemplateUuid);

    Page<DocxTemplateBo> selectPageWithQueryParams(Page<DocxTemplateBo> page, DocxTemplatePageQuery queryParams);

    List<DocxTemplateBo> selectWithQueryParams(@Param("queryParams") DocxTemplatePageQuery queryParams);
}
